// components/headComponent/headComponent.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    headerName: {
      type: String,
      default: ""
    },
    projects:{type:Array,default:[]},
    selectProject: {
      type: Object,
      default: ""}
  },
  data: {
    isHiddenLuruModule:true
  },
  onLoad(){
    debugger
    console.log(this.data.projects, this.data.selectProject)
  },
  methods:{
    switchClick() {
      this.setData({
        isHiddenLuruModule: false
      })
    },
  },

  projectSelectClick(event) {
    getApp().globalData.nowPrj = event.currentTarget.dataset.value;
    this.setData({
      selectProject: event.currentTarget.dataset.value,
      isHiddenLuruModule: true
    })
  }
})
